package com.fp.m7.client.widget;

import com.fp.m7.client.MyMessages;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HasText;
import com.google.gwt.user.client.ui.Label;

/**
 * A "no results found" widget. Will be embedded in VerticalPanelWithEmptyView widget.
 * 
 * @author 7
 */
public class EmptyListWidget extends Composite {

    private static MyMessages msg = GWT.create(MyMessages.class);

    private Label lblNothingHereYet;

    public EmptyListWidget() {
        lblNothingHereYet = new Label(msg.nothingHereYet());
        initWidget(lblNothingHereYet);
        lblNothingHereYet.setStyleName("nothingHereLabel");
    }

    public HasText getLabel() {
        return lblNothingHereYet;
    }
}
